<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:fragment="top(title)">
    您当前访问的页面为 <span th:utext="${title}"></span>

</div>

</body>
</html>